<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    
<%@page import="java.util.*, java.sql.*" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

Hello Reviewer <%=request.getRemoteUser() %>!
<br><br>
These are the Students assigned or suggested for you!
<br><br>

<%
	
	
	
	ResultSet rset = (ResultSet) request.getAttribute("crsStudents");
	Vector<String> students = new Vector<String>();
	Vector<String> studentID = new Vector<String>();
	while(rset.next())
	{
		studentID.add(rset.getString("id"));
		students.add(rset.getString("firstname") + " " + rset.getString("middleinitial") + " " + rset.getString("lastName"));
	}
	
	for(int i=0; i<students.size(); i++)
	{%>
		<html:link action="/pages/reviewers/ReviewStudent">
			<html:param name="studentID" value="<%= studentID.get(i) %>" />
			<html:param name="student" value="<%= students.get(i) %>" />
			<%= students.get(i) %>
		</html:link>
		<br>
		<br>
			
		
	<%}%>
	
	<html:link action="/Logout" >Logout </html:link>

</body>
</html>